"""""
函数中嵌套函数
"""
def fun01():
    print("fun01()函数开始")
    def fun02():
        print("fun02()函数开始")
        print("fun02()函数结束")
    fun02()
    print("fun01()函数结束")
fun01()

def fun02():
    x=5
    def fun01():
        nonlocal x
        x = x + 1
    fun01()
    print(x)
fun02()